<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta name="pdfkit-page-size" content="A4"/>
  <meta name="pdfkit-orientation" content="Portrait"/>
  <title></title>
  <style>
    body {
      margin: 0 auto;
    }
    .outer {
			margin: 0 auto;
			text-align: center;
    }
    .inner {
    	float: left;
    	width: 50%;
    	height:50%;
    }
    .content{
    	margin: 0 auto;
    	margin-top: 75px;
    	width: 100%;
    }
  </style>
</head>
<body>
	<div class="outer">
    {% for item in treasures %}
		<div class="inner" style="">
			<div class="content">
				<h5>宝物名称：{{item.name}}</h5>
				<h5>宝物类别：{{item.get_category_display}}</h5>
				<h5>请将此卡片带去兑奖处</h5>
				<h5>{{item.code}}</h5>
				<img src="https://www.ztm.me/media/qrcodes/{{item.code}}.png" alt="qrcode" />
			</div>
		</div>
    {% endfor %}
	</div>
</body>
</html>
